/*
 * TransferQueueEntry.java
 *
 * Created on December 3, 2006, 8:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package eu.somatik.somaftp.logic;

/**
 *
 * @author francisdb
 */
public class TransferQueueEntry {
    
    private TransferStatus status;
    
    private String fromServer;
    private String toServer;
    
    private String fromLogin;
    private String toLogin;
    
    private String fromPath;
    private String toPath;
    
    private String fromFile;
    private String toFile;
    
    private Protocol fromProtocol;
    private Protocol toProtocol;
    
    private boolean directory;
    
    /** Creates a new instance of TransferQueueEntry */
    public TransferQueueEntry() {
        this.setStatus(TransferStatus.QUEUED);
    }

    public String getFromServer() {
        return fromServer;
    }

    public void setFromServer(String fromServer) {
        this.fromServer = fromServer;
    }

    public String getToServer() {
        return toServer;
    }

    public void setToServer(String toServer) {
        this.toServer = toServer;
    }

    public String getFromPath() {
        return fromPath;
    }

    public void setFromPath(String fromPath) {
        this.fromPath = fromPath;
    }

    public String getToPath() {
        return toPath;
    }

    public void setToPath(String toPath) {
        this.toPath = toPath;
    }

    public Protocol getToProtocol() {
        return toProtocol;
    }

    public void setToProtocol(Protocol toProtocol) {
        this.toProtocol = toProtocol;
    }

    public String getFromLogin() {
        return fromLogin;
    }

    public void setFromLogin(String fromLogin) {
        this.fromLogin = fromLogin;
    }

    public String getToLogin() {
        return toLogin;
    }

    public void setToLogin(String toLogin) {
        this.toLogin = toLogin;
    }

    public Protocol getFromProtocol() {
        return fromProtocol;
    }

    public void setFromProtocol(Protocol fromProtocol) {
        this.fromProtocol = fromProtocol;
    }

    public String getFromFile() {
        return fromFile;
    }

    public void setFromFile(String fromFile) {
        this.fromFile = fromFile;
    }

    public String getToFile() {
        return toFile;
    }

    public void setToFile(String toFile) {
        this.toFile = toFile;
    }

    public TransferStatus getStatus() {
        return status;
    }

    public void setStatus(TransferStatus status) {
        this.status = status;
    }
    
    
    
    public String toString(){
        return
                this.getFromPath() +":"+ this.getFromFile() + " to " + this.getToPath() +":"+this.getToFile();
    }

    public boolean isDirectory() {
        return directory;
    }

    public void setDirecory(boolean directory) {
        this.directory = directory;
    }
    
    
    
}
